<template>
	<view>
		<view class="title">
			{{title}}
		</view>
		<rich-text class="content" :nodes="content">
			
		</rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'',
				content:''
			}
		},
		onLoad:function(e){
			console.log(e);
			uni.request({
				url: this.$unishow + 'api/index/marticle_view?id='+e.id,
				method: 'GET',
				data: {},
				success: res => {
					console.log(res);
					this.title = res.data.data.title;
					this.content = res.data.data.content;
				},
				fail: () => {},
				complete: () => {}
			});
		},
		methods: {
			
		}
	}
</script>

<style>
	.title{
		font-size: 1.0em; font-weight: 600;
	}
	.content{
		line-height: 2em;
	}

</style>
